package com.foo.Writer;

import javax.sql.DataSource;

import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;

public class WriterMain implements WriterInterface
{

	private WriterInterface writerinterface;
	
	 public void setInterfaceInstance(WriterInterface writerinterface) 
	 {
			System.out.println("In Writer Main setter");
		    this.writerinterface = writerinterface;
	 }

	@Override
	public void generateFile(String xFileName, String[] data, String type) 
	{
		System.out.println("In Writer Main");
		 writerinterface.generateFile(xFileName, data, type);

	}
}
